package api

import (
	"sixboss/model"
	"strconv"

	"github.com/gin-gonic/gin"
)

func GetUsers(c *gin.Context) {
	c.JSON(200, gin.H{"status": "OKKKK"})
}

func GetUserInfo(c *gin.Context) {
	id, _ := strconv.Atoi(c.Param("id"))
	data := model.GetUserInfo(id)

	c.JSON(200, gin.H{"username": data.Username, "password": data.Password})
}

func AddUser(c *gin.Context) {}

func EditUser(c *gin.Context) {}
